package com.yzf.web;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.yzf.entity.Task;
import com.yzf.service.TaskService;
import com.yzf.util.web.ServletUtil;

public class task extends HttpServlet {


	private static final long serialVersionUID = 1L;

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		String id = request.getParameter("id");
		ServletUtil.setSessionAttirbute(request, "goalid", id);
		List<Task> list = new TaskService().findByGid(id);
		ServletUtil.setRequestAttribute("list", list, request);
		ServletUtil.forword(request, response, "task");
	}

}
